<?php
/**
 * History.php
 *
 * @copyright   2023 thingsworld.com.cn - All Rights Reserved
 * @link        http://thingsworld.com.cn/
 * @author      stiffer.chen <chenl@thingsworld.com.cn>
 * @created     2023-08-07 11:33:17
 * @modified    2023-08-07 11:33:17
 *
 */

namespace App\Models\QuestionFeedback;

use App\Models\BaseModel;
use App\Models\UserModel;

class History extends BaseModel
{
    protected $table = 'question_feedback_history';
    protected $primaryKey = 'id';

    public const CREATED_AT = 'create_time';
    public const UPDATED_AT = 'update_time';

    protected $fillable = [
        'qf_id',
        'user_id',
        'comment',
        'status'
    ];

    public function user()
    {
        return $this->belongsTo(UserModel::class);
    }
}